package model;

import java.util.List;

/**
 *
 * @author cska
 */
public class Lab {

    private Long id;
    private String begin_date;
    private String end_date;
    private Subject subject;
    private String text;
    private List<Lab_Student> ls;

    public Lab() {
    }

    public Lab(String begin_date, String end_date, Subject subject, String text) {
        this.begin_date = begin_date;
        this.end_date = end_date;
        this.subject = subject;
        this.text = text;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setBegin_date(String begin_date) {
        this.begin_date = begin_date;
    }

    public void setEnd_date(String end_date) {
        this.end_date = end_date;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setLs(List<Lab_Student> ls) {
        this.ls = ls;
    }

    public Long getId() {
        return id;
    }

    public String getBegin_date() {
        return begin_date;
    }

    public String getEnd_date() {
        return end_date;
    }

    public Subject getSubject() {
        return subject;
    }

    public String getText() {
        return text;
    }

    public List<Lab_Student> getLs() {
        return ls;
    }

    @Override
    public String toString() {
        return "Лабораторная работа по предемету "+subject.toString()+" дата "+
                "начала работы: "+begin_date+" дата окончания: "+end_date+
                " задание: "+text;
    }

}
